package bean;
import java.sql.*;
import bean.dbbean.*;
public class admincheck {
	public boolean logincheck(String name,String password) throws SQLException{
		Connection conn=dbbean.getConn();
		Statement stmt=conn.createStatement();
		String mysql="SELECT Name from admin where name='"+name+"' and password='"+password+"'";
		 ResultSet rs=stmt.executeQuery(mysql);
		 if(rs.next())
		 { 
		   return true;
	}else{
			return false;
	}
	}
}
